package com.eastidea.live.entity;

// Generated Feb 8, 2013 11:13:15 AM by Hibernate Tools 3.4.0.CR1

import static javax.persistence.GenerationType.SEQUENCE;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.DiscriminatorColumn;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * FrmUiField generated by hbm2java
 */
@Entity
@Table(name = "frm_dt_data", schema = "public")
public class FrmDtData implements java.io.Serializable {

	private Long id;
	private FrmUiForm frmUiForm;
	private String code;	
	private String valuee;
	private Integer status;
	private String name;
	private String uid;
	private Integer indexx;
	private Date submitTime;

	@SequenceGenerator(name = "generator", sequenceName = "frm_ui_field_seq")
	@Id
	@GeneratedValue(strategy = SEQUENCE, generator = "generator")
	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "code", nullable = false, length = 500)
	public String getCode() {
		return this.code;
	}
	public void setCode(String code) {
		this.code = code;
	}

	@Column(name = "status")
	public Integer getStatus() {
		return this.status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name = "valuee", nullable = false, length = 500)
	public String getValuee() {
		return valuee;
	}
	public void setValuee(String valuee) {
		this.valuee = valuee;
	}
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "form_id")
	public FrmUiForm getFrmUiForm() {
		return this.frmUiForm;
	}
	public void setFrmUiForm(FrmUiForm frmUiForm) {
		this.frmUiForm = frmUiForm;
	}
	
	@Column(name = "name")
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "submit_time")
	public Date getSubmitTime() {
		return submitTime;
	}
	public void setSubmitTime(Date submitTime) {
		this.submitTime = submitTime;
	}

	@Column(name = "uid")
	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	@Column(name = "indexx")
	public Integer getIndexx() {
		return indexx;
	}
	public void setIndexx(Integer indexx) {
		this.indexx = indexx;
	}
}
